home *** CD-ROM | disk | FTP | other *** search
- head 1.2;
- branch ;
- access ;
- symbols sprited:1.2.1;
- locks ; strict;
- comment @ * @;
-
-
- 1.2
- date 88.07.29.17.39.29; author ouster; state Exp;
- branches 1.2.1.1;
- next 1.1;
-
- 1.1
- date 88.06.19.14.31.20; author ouster; state Exp;
- branches ;
- next ;
-
- 1.2.1.1
- date 91.12.10.15.48.56; author kupfer; state Exp;
- branches ;
- next ;
-
-
- desc
- @@
-
-
- 1.2
- log
- @Lint.
- @
- text
- @/*
- * getdirentries.c --
- *
- * Procedure to map from Unix getdirentries system call to Sprite.
- *
- * Copyright (C) 1986 Regents of the University of California
- * All rights reserved.
- */
-
- #ifndef lint
- static char rcsid[] = "$Header: getdirentries.c,v 1.1 88/06/19 14:31:20 ouster Exp $ SPRITE (Berkeley)";
- #endif not lint
-
- #include "sprite.h"
- #include "fs.h"
-
- #include "compatInt.h"
-
-
- /*
- *----------------------------------------------------------------------
- *
- * getdirentries --
- *
- * Procedure to map from Unix getdirentries system call to Sprite
- * Fs_?.
- *
- * This routine does not fully implement the getdirentries
- * semantics. It does enough to keep the readdir library routine
- * happy.
- *
- * Results:
- * amount read - if the call was successful.
- * UNIX_ERROR - the call was not successful.
- * The actual error code stored in errno.
- *
- * Side effects:
- * None.
- *
- *----------------------------------------------------------------------
- */
-
- /* ARGSUSED */
- int
- getdirentries(fd, buf, nbytes, basep)
- int fd;
- char *buf;
- int nbytes;
- long *basep;
- {
- ReturnStatus status; /* result returned by Fs_Read */
- int amountRead;
-
- /*
- * Read an entry in the directory specified by fd.
- */
-
- status = Fs_Read(fd, nbytes, buf, &amountRead);
- if (status != SUCCESS) {
- errno = Compat_MapCode(status);
- return(UNIX_ERROR);
- } else {
- return(amountRead);
- }
- }
- @
-
-
- 1.2.1.1
- log
- @Initial branch for Sprite server.
- @
- text
- @d11 1
- a11 1
- static char rcsid[] = "$Header: /sprite/src/lib/c/unixSyscall/RCS/getdirentries.c,v 1.2 88/07/29 17:39:29 ouster Exp $ SPRITE (Berkeley)";
- @
-
-
- 1.1
- log
- @Initial revision
- @
- text
- @d11 1
- a11 1
- static char rcsid[] = "$Header: proto.c,v 1.1 86/03/04 16:46:31 douglis Exp $ SPRITE (Berkeley)";
- d43 1
- @
-